package Articulo.src.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.GridLayout;
import net.miginfocom.swing.MigLayout;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Menu extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Menu frame = new Menu();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Menu() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new MigLayout("", "[][][][][][][][][][][][][]", "[][][][][]"));
		
		JLabel lblEligaLaOpcion = new JLabel("ELIGA LA OPCION DESEADA");
		contentPane.add(lblEligaLaOpcion, "cell 6 0,alignx center");
		
		JButton btnAgregarProducto = new JButton("AGREGAR PRODUCTO");
		btnAgregarProducto.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				agregar a = new agregar();
				a.setVisible(true);
				dispose();
			}
		});
		contentPane.add(btnAgregarProducto, "cell 6 2");
		
		JButton btnEditarInformacionDe = new JButton("EDITAR INFORMACION DE UN PRODUCTO");
		contentPane.add(btnEditarInformacionDe, "cell 6 3");
		
		JButton btnVerProductosDel = new JButton("VER PRODUCTOS DEL MENU");
		contentPane.add(btnVerProductosDel, "cell 6 4");
	}

}
